import axios from "axios";
import { config } from "../util/config";

export async function faceLogin (data) {
    const url = `${config.apiBaseUrl}/faceCheck/faceLogin`
    return new Promise((resolve, reject) =>  {
        return axios.post(url, data, {
            headers: {
                'Content-Type': 'multipart/form-data'
            }
        }).then(res => {
            if (res.status === 200) {
                resolve(res.data)
            }
        }, e => {
            reject(e)
        })
    })
}
